<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html >
    <head>
        <title>Aurus</title>
        <link rel="icon" href="{ROOT}adminarea/template/images/favicon.ico" type="image/x-icon" >
        <link rel="shortcut icon" href="{ROOT}adminarea/template/images/favicon.ico" type="image/x-icon">
        <link href="{ROOT}adminarea/template/style.css" rel="stylesheet" type="text/css" media="screen">
        {js}
    </head>
    <body style="height:100%">
	<!---->
	<script type="text/javascript">
	    $(document).ready(function(){
		setInterval("checkAnchor()", 300);
	    });
	    
	    var currentAnchor = '';
	    var checkTimes = 0;
	    //Function which chek if there are anchor changes, if there are, sends the ajax petition
	    function checkAnchor(){
		var query = null;
		//Check if it has changes
		if(currentAnchor != splitAddress(window.location.href)[1]){
		    currentAnchor = splitAddress(window.location.href)[1];
		
		    //if there is not anchor, the loads the default section
		    if(!currentAnchor) {
			query = "";
		    } else {
			query = document.location.hash;
		    }
		    
		    $('#main')[0].src = $('#main')[0].src.split('?')[0] + '?do=' + currentAnchor;
		}
		checkTimes++;
	    }
	    function navAnchor(a) {
		if (a != '') {
		    a = '#' + a;
		}
		window.location.href = splitAddress(window.location.href)[0] + a;
	    }
	    function setSelfAddress(a) {
		if (!checkTimes) {
		    return;
		}
		currentAnchor = a;
		window.location.hash = a;
	    }
	    function splitAddress(addr){
		var ret = addr.split('#');
		if (ret.length == 2) {
		    return ret;
		} else if (ret.length == 1){
		    ret[1] = null;
		    return ret;
		}
	    }
	</script>
        <table cellpadding="0" cellspacing="0" style="height: 100%;border:0" width="100%">
            <tr valign="top" style="height: 100%">
                <td width="240">
                    <div class="frames">
                        <iframe id="frameNav" scrolling="auto" style="height: 100%" width="240" height="100%" src="{ROOT}adminarea/?system=leftmenu"></iframe>
                    </div>
                </td>
                <td>
		    <!-- table -->
                    <table cellpadding="0" cellspacing="0" style="height: 100%" width="100%">
                        <tr style="height: 25px;">
                            <td height="100%">
				<iframe scrolling="auto" height="100%" style="height:100%" width="100%" src="{ROOT}adminarea/?do=index" id="main" name="main">{noframes}</iframe>
                            </td>
                        </tr>
                    </table>
                    <!-- table -->
                </td>
            </tr>
        </table>
    </body>
</html>